package com.sinping.qh.domain.records;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.sinping.qh.domain.base.BaseDomain;
import com.sinping.qh.domain.common.UploadImage;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;
import java.util.List;

/**
 * @author zhangjin
 * @create 2018/5/28
 */
@Document(collection = "tb_rectify_review")
@Data
public class RectifyReviewDomain extends BaseDomain {

    /**
     * 隐患记录id
     */
    @Field("hidden_danger_id")
    private String hiddenDangerId;
    /**
     * 类型 0整改、1复查
     */
    @Field("re_type")
    private String reType;

    /**
     * 隐患状态
     */
    @Field("hidden_danger_status")
    private String hiddenDangerStatus;

    /**
     * 图片url
     */
    @Field("uploadImageList")
    private List<UploadImage> uploadImageList;
    /**
     * 描述
     */
    @Field("desc")
    private String desc;
    /**
     * 提交人id
     */
    @Field("submit_user_id")
    private String submitUserId;
    /**
     * 提交人姓名
     */
    @Field("submit_user_name")
    private String submitUserName;
    /**
     * 提交时间
     */
    @Field("submit_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date submitTime;

    /**
     * 提交时间
     */
    @JsonProperty("pre_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date preTime;
}
